package com.tao.config;

import com.tao.service.MiaoshaService;
import com.tao.service.impl.Mq.MiaoshaSendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @Author: alubus
 * @Date: 2021/11/25 14:00
 * @Package: com.tao.config
 * 开局自动运行的 内容
 */
@Component
public class InitProject implements ApplicationRunner {
    @Autowired
    MiaoshaService miaoshaService;
    @Autowired
    MiaoshaSendService miaoshaSendService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        miaoshaService.setMiashaSum(666L,50);
    }
}
